package com.sr.data;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class srProject {
	private String projectID;
	private String projectName;
	private String Department;
	private Date BeginDate;
	private Date EndDate;
	private String ProjectLeader;
	private int MainMembers;
	private String FromOrg;
	private String TypeProject;
	private String LevelProject;
	private String Discipline;
	private String Contract_Pic;
	private double TotalMoney;
	private Date RealEndDate;
	private String CompletionTask;
	private String PassAudit; 
	private String ConclusionReport;
	private String Rank;
	private String RankContent;
	
	
	//ID
	 	    
	 public String getprojectID() {	        
	        return projectID;
	}	
	public void setprojectID(String projectID){
		this.projectID =projectID;		
	}
	
	//项目名称
	public String getprojectName() {
		return projectName;
	}
	public void setprojectName(String projectName) {
		this.projectName = projectName;
	}
	
	//部门
	public String getDepartment(){
		return Department;
	}
	public void setDepartment(String Department){
		this.Department = Department;
	}
	
	//开始时间
	public String getDateS1() {
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
		return sdf.format(BeginDate);
	}

	public Date BeginDate() {
		return BeginDate;
	}
	public void setBeginDate(Date BeginDate) {
		this.BeginDate = BeginDate;
	}
	public void setBeginDate(String BeginDate) {
		try  
		{  
		    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");  
		    this.BeginDate = sdf.parse(BeginDate);  
		}  
		catch (ParseException e)  
		{  
		    System.out.println("setBeginDate:"+e.getMessage());  
		}  
	}
	
	//结束时间
	public String getDateS2() {
		SimpleDateFormat sdf2=new SimpleDateFormat("yyyy-MM-dd");
		return sdf2.format(EndDate);
	}

	public Date EndDate() {
		return EndDate;
	}
	public void setEndDate(Date EndDate) {
		this.EndDate = EndDate;
	}
	public void setEndDate(String EndDate) {
		try  
		{  
		    SimpleDateFormat sdf3 = new SimpleDateFormat("yyyy-MM-dd");  
		    this.EndDate = sdf3.parse(EndDate);  
		}  
		catch (ParseException e)  
		{  
		    System.out.println(e.getMessage());  
		}  
	}
	
	//负责人
	public String getProjectLeader(){
		return ProjectLeader;
	}
	public void setProjectLeader(String ProjectLeader){
		this.ProjectLeader = ProjectLeader;
	}
	
	//人数
	public int getMainMembers() {
		return MainMembers;
	}
	public void setMainMembers(int MainMembers) {
		this.MainMembers= MainMembers;
	}
	
	//组织机构
	public String getFromOrg() {
		return FromOrg;
	}
	public void setFromOrg(String FromOrg) {
		this.FromOrg = FromOrg;
	}
	
	//项目类型
	public String getTypeProject() {
		return TypeProject;
	}
	public void setTypeProject(String TypeProject) {
		this.TypeProject = TypeProject;
	}
	
	//项目级别
	public String getLevelProject() {
		return LevelProject;
	}
	public void setLevelProject(String LevelProject) {
		this.LevelProject = LevelProject;
	}
	
	//学科领域
	public String getDiscipline() {
		return Discipline;
	}
	public void setDiscipline(String Discipline) {
		this.Discipline = Discipline;
	}
	
	//项目合同
	public String getContract_Pic() {
		return Contract_Pic;
	}
	public void setContract_Pic(String Contract_Pic) {
		this.Contract_Pic = Contract_Pic;
	}
	
	//经费

	public double totalMoney(){
		return TotalMoney;		
	}
	public void setTotalMoney(double TotalMoney){
		this.TotalMoney = TotalMoney;
	}

	//实际结束时间
	public String getDateS3() {
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
		return sdf.format(RealEndDate);
	}

	public Date RealEndDate() {
		return RealEndDate;
	}
	public void setRealEndDate(Date RealEndDate) {
		this.RealEndDate = RealEndDate;
	}
	public void setRealEndDate(String RealEndDate) {
		try  
		{  
		    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");  
		    this.RealEndDate = sdf.parse(RealEndDate);  
		}  
		catch (ParseException e)  
		{  
		    System.out.println(e.getMessage());  
		}  
	}
	
	//任务完成情况
	public String getCompletionTask() {
		return CompletionTask;
	}
	public void setCompletionTask(String CompletionTask) {
		this.CompletionTask= CompletionTask;
	}
	
	//经费通过与否
	
	public String getPassAudit(){
		return PassAudit;
	}
	public void setPassAudit(String PassAudit){
		this.PassAudit = PassAudit;
	}
	
	
	//结题报告
	public String getConclusionReport() {
		return ConclusionReport;
	}
	public void setConclusionReport(String ConclusionReport) {
		this.ConclusionReport= ConclusionReport;
	}
	
	//等级评价
	public String getRank() {
		return Rank;
	}
	public void setRank(String Rank) {
		this.Rank= Rank;
	}
	
	//评价内容
	public String getRankContent() {
		return RankContent;
	}
	public void setRankContent(String RankContent) {
		this.RankContent= RankContent;
	}
	@Override
	public String toString() {
		return "srProject [projectID=" + projectID + ", projectName=" + projectName + ", Department=" + Department
				+ ", BeginDate=" + BeginDate + ", EndDate=" + EndDate + ", ProjectLeader=" + ProjectLeader
				+ ", MainMembers=" + MainMembers + ", FromOrg=" + FromOrg + ", TypeProject=" + TypeProject
				+ ", LevelProject=" + LevelProject + ", Discipline=" + Discipline + ", Contract_Pic=" + Contract_Pic
				+ ", TotalMoney=" + TotalMoney + ", RealEndDate=" + RealEndDate + ", CompletionTask=" + CompletionTask
				+ ", PassAudit=" + PassAudit + ", ConclusionReport=" + ConclusionReport + ", Rank=" + Rank
				+ ", RankContent=" + RankContent + "]";
	}
	
}
